package com.ten.system.service;

import com.ten.common.core.entity.AclRole;
import com.ten.common.core.vo.Result;
import com.ten.system.vo.FenRoleVo;
import com.ten.system.vo.RoleVo;

/**
 * @author ：Q大侠
 * @date ：Created in 2022/12/5 18:25
 * @description：
 * @modified By：
 * @version:
 */
public interface AclRoleService {
    /** 
     * @create by:  Q大侠
     * @description:  
     * @create time: 2022/12/5 18:41
      * @param userid 
     * @return Result
     */
    Result finRoleByUserId(Long userid);

    Result fenUserRole(FenRoleVo fenRoleVo);
    /**
     * 根据条件分页搜索角色信息
     * @param roleVo 条件对象
     * @param current 页码
     * @param pageSize 每页显示的记录
     * @return
     */
    Result findByConditionPage(RoleVo roleVo, Integer current, Integer pageSize);
    /** 
     * @create by:  Q大侠
     * @description: 角色禁用/启用 
     * @create time: 2022/12/10 19:19
      * @param  id,deleted 
     * @return  Result
     */
    Result updateRoleStatusByid(String id,int deleted);
    /** 
     * @create by:  Q大侠
     * @description: 添加角色 
     * @create time: 2022/12/10 19:34
      * @param aclRole 
     * @return Result 
     */
    Result addOrUpdateRole(AclRole aclRole);
    /** 
     * @create by:  Q大侠
     * @description: 根据id删除角色 
     * @create time: 2022/12/10 21:02
      * @param id 
     * @return resul 
     */
    Result deleteRoleById(String id);
    /** 
     * @create by:  Q大侠
     * @description: 修改角色信息 
     * @create time: 2022/12/10 21:03
      * @param aclRole
     * @return result 
     */
    Result updateRoleById(AclRole aclRole);
}
